<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusGasSkTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_gas_sk', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->dateTime('date_time')->nullable()->comment('日期');
            $table->integer('gun_num')->nullable()->comment('枪号');
            $table->integer('serial_num')->nullable()->comment('流水号');
            $table->integer('post_num')->nullable()->comment('存储号');
            $table->decimal('gas_count', 10, 2)->nullable()->comment('气量');
            $table->decimal('gas_amt', 10, 2)->nullable()->comment('金额');
            $table->decimal('gas_unit_amt', 10, 2)->nullable()->comment('单价');
            $table->integer('card_region_num')->nullable()->comment('卡属区域号');
            $table->integer('card_operator_num')->nullable()->comment('卡属运营商号');
            $table->string('user_card_num')->nullable()->comment('用户卡号');
            $table->string('card_type')->nullable()->comment('卡类型');
            $table->string('car_type')->nullable()->comment('车型');
            $table->string('license_plate_num')->nullable()->comment('车牌号');
            $table->integer('team')->nullable()->comment('班组');
            $table->integer('line')->nullable()->comment('路数');
            $table->string('consumption_patterns')->nullable()->comment('消费方式');
            $table->decimal('card_balance', 10, 2)->nullable()->comment('卡余额');
            $table->integer('employee_card_num')->nullable()->comment('员工卡号');
            $table->integer('is_paid')->nullable()->comment('是否付款');
            $table->string('cashier')->nullable()->comment('收银员');
            $table->integer('sign')->nullable()->comment('标志');
            $table->decimal('start_pressure', 10, 2)->nullable()->comment('开始压力');
            $table->decimal('end_pressure', 10, 2)->nullable()->comment('结束压力');
            $table->integer('add_gas_long')->nullable()->comment('add_gas_long');
            $table->integer('stop_all_gas')->nullable()->comment('stop_all_gas');
            $table->decimal('offset', 10, 4)->nullable()->comment('offset');
            $table->decimal('density', 10, 2)->nullable()->comment('density');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_gas_sk');
    }
}
